<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<title>查询统计</title>
	<link rel="stylesheet" href="../bootstrap-3.3.4/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/common.css" type="text/css">

	<style type="text/css">
	* input{
		margin: 2px 10px;
	}
	body{
		background: rgba(0,0,0,0);
		color: #fff;
		margin-right: 15px;
	}
	select,select option{
            width: 100px;
            color: #000;  
            border-radius: 2px; 
       }
	th{
		background-color: #286090;
		border: none;
		color: white;
	}

	</style>
</head>
<body>
<h2>查询档案</h2>


<%--ArrayList<AmArchives> amArchivesArrayList;


	ArrayList<AmDepartment> amDepartmentArrayList;

		ArrayList<AmFileType> amFileTypeArrayList;--%>


			<div name="select">

	<table  class="table">
        <form  action="queryarchives" method="post" Namespace="\">
        <td class="na" style="vertical-align: middle;">部门：</td>
		<td  style="vertical-align:middle" >
            <select>
				<s:iterator value="amDepartmentArrayList" id="dep">
				<option><s:property value="departmentName" /></option>
				</s:iterator>
			</select>
		</td>
		<td class="na" style="vertical-align: middle;">类型:</td>
		<td style="vertical-align:middle" >
			<select >
				<s:iterator value="amFileTypeArrayList" id="fie">
					<option><s:property value="fileTypeName" /></option>
				</s:iterator>
			</select>
		</td>
        <td >
            <input type="text" class="form-control" name="keyWord" placeholder="请输入关键字"
                    maxlength="30">
        </td>
			<input type="hidden"  name="accountId" value="<s:property value="accountId"/>">

			<td >
            <button type="submit" class="btn">查询</button>
		</td>
            </form>
	</table>
	</div>
<div id="Loan-record"> 
<table class="table" >
	

	<th>档案编号</th>
	<th>档案主题</th>
	<th>档案类型</th>
	<th>档案描述</th>
	<th>归属部门</th>
	<th>归属用户</th>
	<th>操作</th>

	<s:iterator value="amArchivesArrayList" >

	<tr>

<%--        private int archivesId;
        private String archivesAbstract;
        private String archivesFilePath;
        private Integer archivesStatus;
        private String archivesTitle;
        private Integer arefreceParentId;
        private AmDepartment archivesDepartmentId;
        private AmAccount archivesSummittedUserId;
        private AmFileType archivesTypeId;--%>

		<td><s:property value="archivesId" /></td>
		<td><s:property value="archivesTitle" /></td>
		<td><s:property value="archivesTypeId.getFileTypeName()" /></td>
		<td><s:property value="archivesAbstract" /></td>
		<td><s:property value="archivesDepartmentId.getDepartmentName()" /></td>
		<td><s:property value="archivesSummittedUserId.getAccountNickname()" /></td>
		<td>
			<a href="${pageContext.request.contextPath }/getarchiveapply?amArchivesId=<s:property value="archivesId"/>&accountId=<s:property value="accountId"/>" >申请借阅</a>
		</td>

	</tr>
	</s:iterator>

</table>

</div>


</body>
</html>